import { post } from '@/ck/plugin/axios'
import Token from '@/ck/util/token'

class Login {

  static async getToken (CompanyCode,Phone, PassWord) {
    const tokens = await post('api/Manage/Staff/ManageLogin',{
      CompanyCode,Phone,PassWord
    })
    Token.saveAccessToken(tokens.Token)
    return tokens
  }

  static async getMenuBar () {
    return  post('api/Manage/Jurisdiction/GetMenuBar',)
  }

}
export default Login
